package model

type Configuration struct {
	Address  string   `yaml:"address"`
	Database Database `yaml:"database"`
	Env      string   `yaml:"env"`
	Debug    bool     `yaml:"debug"`
	Log      Log      `yaml:"log"`
}

type Log struct {
	Format string `yaml:"format"`
	Level  string `yaml:"level"`
}

type Database struct {
	Host         string `yaml:"host"`
	User         string `yaml:"user"`
	Password     string `yaml:"password"`
	Name         string `yaml:"name"`
	Log          bool   `yaml:"log"`
	MaxIdleConns int    `yaml:"maxIdleConns"`
	MaxOpenConns int    `yaml:"maxOpenConns"`
}
